/*紫微斗数 Chinese Astrology Zi Wei Dou Shu*/
/*天干地支五行局*/
const YinYang=["阳","阴"];
const HeavenlyStems=["甲","乙","丙","丁","戊","己","庚","辛","壬","癸"];
const EarthlyBranches=["子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"];
const HourChen = ['子','丑','丑','寅','寅','卯','卯','辰','辰','巳','巳','午','午','未','未','申','申','酉','酉','戌','戌','亥','亥','子'];
const ShengXiaoGB=["鼠", "牛", "虎", "兔", "龙", "蛇","马", "羊", "猴", "鸡", "狗", "猪"];
const Signs12=["【命宫】","【父母宫】","【福德宫】","【田宅宫】","【官禄宫】","【交友宫】","【迁移宫】","【疾厄宫】","【财帛宫】","【子女宫】","【夫妻宫】","【兄弟宫】","【身】"];
const FiveElements=["水二局","火六局","土五局","木三局","金四局"];
const DaShian=[2,6,5,3,4];//搭配五行局
const WeekdayList = ["日", "一", "二", "三","四", "五", "六"];
const DaysInSolarMonth = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
/*Stars*/
const StarM_A14=["紫微","天机","太阳","武曲","天同","廉贞","天府","太阴","贪狼","巨门","天相","天梁","七杀","破军"];
const StarM_A07=["文昌","文曲","左辅","右弼","天魁","天钺","禄存"];
const StarM_S04=["化禄","化权","化科","化忌"];
const StarM_B06=["擎羊","陀罗","火星","铃星","天空","地劫"];
const StarO_S05=["天马","龙池","凤阁","红鸾","天喜"];
/*0:水二局:[1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,0,0,1,1,2,2,3,3,4]
  3:木三局:[4,1,2,5,2,3,6,3,4,7,4,5,8,5,6,9,6,7,10,7,8,11,8,9,0,9,10,1,10,11]
  4:金四局:[11,4,1,2,0,5,2,3,1,6,3,4,2,7,4,5,3,8,5,6,4,9,6,7,5,10,7,8,6,11]
  2:土五局:[6,11,4,1,2,7,0,5,2,3,8,1,6,3,4,9,2,7,4,5,10,3,8,5,6,11,4,9,6,7]
  1:火六局:[9,6,11,4,1,2,10,7,0,5,2,3,11,8,1,6,3,4,0,9,2,7,4,5,1,10,3,8,5,6]*/
const FiveEleTable=[
	[1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,0,0,1,1,2,2,3,3,4],
	[9,6,11,4,1,2,10,7,0,5,2,3,11,8,1,6,3,4,0,9,2,7,4,5,1,10,3,8,5,6],
	[6,11,4,1,2,7,0,5,2,3,8,1,6,3,4,9,2,7,4,5,10,3,8,5,6,11,4,9,6,7],
	[4,1,2,5,2,3,6,3,4,7,4,5,8,5,6,9,6,7,10,7,8,11,8,9,0,9,10,1,10,11],
	[11,4,1,2,0,5,2,3,1,6,3,4,2,7,4,5,3,8,5,6,4,9,6,7,5,10,7,8,6,11]];
const FiveEleArr=[[0,1,3,2,4,1],[1,2,4,3,0,2],[2,3,0,4,1,3],[3,4,1,0,2,4],[4,0,2,1,3,0]];
	
//StarM_A14 => 0:紫微,1:天机,2:太阳,3:武曲,4:天同,5:廉贞,6:天府,7:太阴,8:贪狼,9:巨门,10:天相,11:天梁,12:七杀,13:破军
const Star_A14=[
	[[0],[],[13],[],[5,6],[7],[8],[4,9],[3,10],[2,11],[12],[1]],
	[[1],[0,13],[],[6],[7],[5,8],[9],[10],[4,11],[3,12],[2],[]],
	[[13],[1],[0,6],[7],[8],[9],[5,10],[11],[12],[10],[3],[2]],
	[[2],[6],[1,7],[0,8],[9],[10],[11],[5,12],[],[],[4],[3,13]],
	[[3,6],[2,7],[8],[1,9],[0,10],[11],[12],[],[5],[],[13],[4]],
	[[4,7],[3,8],[2,9],[10],[1,10],[0,12],[],[],[],[5,13],[],[6]],
	[[8],[4,9],[3,10],[2,11],[12],[1],[0],[],[13],[],[5,6],[7]],
	[[9],[10],[4,11],[3,12],[2],[],[1],[0,13],[],[6],[7],[5,8]],
	[[5,10],[11],[12],[10],[3],[2],[13],[1],[0,6],[7],[8],[9]],
	[[11],[5,12],[],[],[4],[3,13],[2],[6],[1,7],[0,8],[9],[10]],
	[[12],[],[5],[],[13],[4],[3,6],[2,7],[8],[1,9],[0,10],[11]],
	[[],[],[],[5,13],[],[6],[4,7],[3,8],[2,9],[10],[1,10],[0,12]]
];
//安紫微诸星表，第7列，[6]为天府
const Star_Z06=[
	[0,1,2,3,4,5,6,7,8,9,10,11],
	[11,0,1,2,3,4,5,6,7,8,9,10],
	[9,10,11,0,1,2,3,4,5,6,7,8],
	[8,9,10,11,0,1,2,3,4,5,6,7],
	[7,8,9,10,11,0,1,2,3,4,5,6],
	[4,5,6,7,8,9,10,11,0,1,2,3],
	[4,3,2,1,0,11,10,9,8,7,6,5]
];
const Star_T08=[
	[0,1,2,3,4,5,6,7,8,9,10,11],
	[1,2,3,4,5,6,7,8,9,10,11,0],
	[2,3,4,5,6,7,8,9,10,11,0,1],
	[3,4,5,6,7,8,9,10,11,0,1,2],
	[4,5,6,7,8,9,10,11,0,1,2,3],
	[5,6,7,8,9,10,11,0,1,2,3,4],
	[6,7,8,9,10,11,0,1,2,3,4,5],
	[10,11,0,1,2,3,4,5,6,7,8,9]
];
//StarM_A07=new Array("文昌","文曲","左辅","右弼","天魁","天钺","禄存");
//0:文昌 1:文曲 (时) 2:左辅 3:右弼 (月) 4:天魁 5:天钺 6:禄存(年干)
const Star_G07=[
	[10,9,8,7,6,5,4,3,2,1,0,11],
	[4,5,6,7,8,9,10,11,0,1,2,3],
	[4,5,6,7,8,9,10,11,0,1,2,3],
	[10,9,8,7,6,5,4,3,2,1,0,11],
	[1,0,11,11,1,0,1,6,3,3],
	[7,8,9,9,7,8,7,2,5,5],
	[2,3,5,6,5,6,8,9,11,0]
];
//StarM_S04=new Array("化禄","化权","化科","化忌");
//0:紫微,1:天机,2:太阳,3:武曲,4:天同,5:廉贞,6:天府,7:太阴,8:贪狼,9:巨门,10:天相,11:天梁,12:七杀,13:破军
//0:文昌 1:文曲 (时) 2:左辅 3:右弼 (月) 4:天魁 5:天钺 6:禄存(年干)
//0:化禄 1:化权 2:化科 3:化忌
const Star_S04=[
	[StarM_A14[5],StarM_A14[1],StarM_A14[4],StarM_A14[7],StarM_A14[8],StarM_A14[3],StarM_A14[2],StarM_A14[9],StarM_A14[11],StarM_A14[13]],
	[StarM_A14[13],StarM_A14[11],StarM_A14[1],StarM_A14[4],StarM_A14[7],StarM_A14[8],StarM_A14[3],StarM_A14[2],StarM_A14[0],StarM_A14[9]],
	[StarM_A14[3],StarM_A14[0],StarM_A07[0],StarM_A14[1],StarM_A07[3],StarM_A14[11],StarM_A14[7],StarM_A07[1],StarM_A07[2],StarM_A14[7]],
	[StarM_A14[2],StarM_A14[7],StarM_A14[5],StarM_A14[9],StarM_A14[1],StarM_A07[1],StarM_A14[4],StarM_A07[0],StarM_A14[3],StarM_A14[8]]
];
//StarM_B06=new Array("擎羊","陀罗","火星","铃星","天空","地劫");
//0:擎羊 1:陀罗 2:火星 3:铃星 4:天空 5:地劫
//0:2,6,10 1:8,0,4 2:5,9,1 3:11,3,7  %4=> 2,0,1,3
//改成0:8,0,4 1:5,9,1 2:2,6,10 3:11,3,7 
const Star_B06=[
	[3,4,6,7,6,7,9,10,0,1],
	[1,2,4,5,4,5,7,8,10,11],
	[[2,3,4,5,6,7,8,9,10,11,0,1],[3,4,5,6,7,8,9,10,11,0,1,2],[1,2,3,4,5,6,7,8,9,10,11,0],[9,10,11,0,1,2,3,4,5,6,7,8]],
	[[10,11,0,1,2,3,4,5,6,7,8,9],[10,11,0,1,2,3,4,5,6,7,8,9],[3,4,5,6,7,8,9,10,11,0,1,2],[10,11,0,1,2,3,4,5,6,7,8,9]],
	[11,10,9,8,7,6,5,4,3,2,1,0],
	[11,0,1,2,3,4,5,6,7,8,9,10]
];
//StarO_S05=new Array("天马","龙池","凤阁","红鸾","天喜"");
const Star_OS5=[
	[2,11,8,5,2,11,8,5,2,11,8,5],
	[4,5,6,7,8,9,10,11,0,1,2,3],
	[10,9,8,7,6,5,4,3,2,1,0,11],
	[3,2,1,0,11,10,9,8,7,6,5,4],
	[9,8,7,6,5,4,3,2,1,0,11,10]
];
